package com.itheima.service.impl;

import com.itheima.dao.StrudentDao;
import com.itheima.service.StrudentService;

public class StrudentServiceImpl implements StrudentService {
    //声明dao
    //1.把new干掉
    private StrudentDao strudentDao;
    //2.给属性提供一个set方法
    public void setStrudentDao(StrudentDao strudentDao){
        this.strudentDao = strudentDao;
    }

    @Override
    public void save() {
        System.out.println("StrudentServiceImpl set...");
        strudentDao.save();
    }

}
